package com.campuscarbooking.api.dto.auth;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class WechatLoginRequest {

    @NotBlank(message = "微信code不能为空")
    private String code;

    @NotBlank(message = "用户类型不能为空")
    @Pattern(regexp = "student|teacher", message = "用户类型必须是student或teacher")
    private String userType;
} 